package com.serverTechnology.teamsGroups.entity;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigInteger;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产线和智能设备和智能工具和操作人员关联表
 * </p>
 *
 * @author 王凯炫
 * @since 2024-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TE_PRO_DEVICE_TOOL_USER")
@ApiModel(value="TeProDeviceToolUser对象", description="产线和智能设备和智能工具和操作人员关联表")
public class ProDeviceToolUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    @TableField("ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "工具配置ID")
    @TableField("RESOURCE_ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long resourceId;


    @ApiModelProperty(value = "父ID")
    @TableField("PID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long pid;


    @ApiModelProperty(value = "类型（0设备，1工具，2人员）")
    @TableField("TYPE")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long type;


}
